package org.wmine.core;

import javax.swing.*;
import java.awt.*; 

public class FileBrowser extends JFrame{
		 
		 private FileDialog openFileDialog;
		 private FileDialog saveFileDialog;
		 
	public void createOpenFileDialog(JFrame parent){
		openFileDialog = new FileDialog(parent, "Open File");
		openFileDialog.setVisible(true);
	}
	
	public void CreateSaveDialog() {
		FileBrowser fileBrowserFrame = new FileBrowser();
		fileBrowserFrame.setSize(100,100);
		fileBrowserFrame.setVisible(true);
		fileBrowserFrame.setLayout(new FlowLayout());
		JLabel saveFileLabel = new JLabel("Enter the Name of the file to be Saved ");
		JTextField fileToSave = new JTextField();
		JButton saveButton = new JButton("Save");	
		fileBrowserFrame.add(saveFileLabel);
		fileBrowserFrame.add(fileToSave);
		fileBrowserFrame.add(saveButton);
		}	
		
	
}
